package com.google.android.exoplayer2.extractor.mp4;

import android.os.Parcel;
import android.os.Parcelable.Creator;
import androidx.annotation.Nullable;
import com.google.android.exoplayer2.metadata.Metadata.Entry;
import java.util.Arrays;
import o.anr;

public final class MdtaMetadataEntry implements Entry {
    public static final Creator<MdtaMetadataEntry> CREATOR = new Creator<MdtaMetadataEntry>() {
        public /* synthetic */ Object createFromParcel(Parcel parcel) {
            return ˊ(parcel);
        }

        public /* synthetic */ Object[] newArray(int i) {
            return ˎ(i);
        }

        public MdtaMetadataEntry ˊ(Parcel parcel) {
            return new MdtaMetadataEntry(parcel);
        }

        public MdtaMetadataEntry[] ˎ(int i) {
            return new MdtaMetadataEntry[i];
        }
    };
    public final byte[] ˊ;
    public final int ˎ;
    public final String ˏ;
    public final int ॱ;

    public MdtaMetadataEntry(String str, byte[] bArr, int i, int i2) {
        this.ˏ = str;
        this.ˊ = bArr;
        this.ˎ = i;
        this.ॱ = i2;
    }

    private MdtaMetadataEntry(Parcel parcel) {
        this.ˏ = (String) anr.ˎ(parcel.readString());
        this.ˊ = new byte[parcel.readInt()];
        parcel.readByteArray(this.ˊ);
        this.ˎ = parcel.readInt();
        this.ॱ = parcel.readInt();
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        MdtaMetadataEntry mdtaMetadataEntry = (MdtaMetadataEntry) obj;
        if (this.ˏ.equals(mdtaMetadataEntry.ˏ) && Arrays.equals(this.ˊ, mdtaMetadataEntry.ˊ) && this.ˎ == mdtaMetadataEntry.ˎ && this.ॱ == mdtaMetadataEntry.ॱ) {
            return true;
        }
        return false;
    }

    public int hashCode() {
        return ((((((this.ˏ.hashCode() + 527) * 31) + Arrays.hashCode(this.ˊ)) * 31) + this.ˎ) * 31) + this.ॱ;
    }

    public String toString() {
        return "mdta: key=" + this.ˏ;
    }

    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(this.ˏ);
        parcel.writeInt(this.ˊ.length);
        parcel.writeByteArray(this.ˊ);
        parcel.writeInt(this.ˎ);
        parcel.writeInt(this.ॱ);
    }

    public int describeContents() {
        return 0;
    }
}
